package com.zemo.entity;

import java.io.Serializable;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * @ClassName: Product
 * @author: SuperZemo
 * @date: Mar 31, 2014 1:27:52 AM
 * @email:chenzeming@lanbaoo.com
 * @Description: 商品类
 */
@Entity
@Table(name = "products")
public class Product implements Serializable{
	
	private static final long serialVersionUID = -5214800907462969980L;
	private Integer id;
	private String name; //商品名称
	private Integer price;//商品价格
	private String description;//商品描述
	private Integer ammount;//商品总数
	private Integer remaining;//商品剩余
	
	
	public Product() {
	}
	
	@Id
	@GeneratedValue
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public Integer getPrice() {
		return price;
	}
	public void setPrice(Integer price) {
		this.price = price;
	}
	public String getDescription() {
		return description;
	}
	public void setDescription(String description) {
		this.description = description;
	}
	public Integer getAmmount() {
		return ammount;
	}
	public void setAmmount(Integer ammount) {
		this.ammount = ammount;
	}
	public Integer getRemaining() {
		return remaining;
	}
	public void setRemaining(Integer remaining) {
		this.remaining = remaining;
	}
	
	
}
